//  初始化 state
const state = sessionStorage.getItem('user_state') ? JSON.parse(sessionStorage.getItem('user_state')) : {
    //  用户信息
    user    :   {}
};

const getters = {
    getMeInfo : state => state.user,
};

const mutations = {
    setMeInfo: (state, user) => state.user = user,
};

const actions = {

};

export default {
    state : state,
    getters : getters,
    mutations : mutations,
    actions : actions
};
